<?php
namespace App\Pay;

use App\Pay\Config\Config;
use App\Pay\Gateway\Alipay;
use App\Pay\Gateway\Qqpay;
use App\Pay\Gateway\Wechat;

class Pay
{

    /**
     * @param Config $config
     * @return Wechat
     */
    public static function wechat($config)
    {
        return (new Wechat($config));
    }

    /**
     * @param Config $config
     * @return Alipay
     */
    public static function alipay($config)
    {
        return (new Alipay($config));
    }

    /**
     * @param Config $config
     * @return Qqpay
     */
    public static function qqpay($config)
    {
        return (new Qqpay($config));
    }
}
